package com.ruoyi.creditlife.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户借书记录对象 book_borrrow_record
 * 
 * @author ddd
 * @date 2025-07-09
 */
public class BookBorrrowRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 图书ID */
    @Excel(name = "图书ID")
    private Long bookId;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowTime;

    /** 应还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "应还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueTime;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 是否预期 */
    @Excel(name = "是否预期")
    private Long isOverdue;

    /** 涉及金额 */
    @Excel(name = "涉及金额")
    private BigDecimal amount;

    /** 分数影响 */
    @Excel(name = "分数影响")
    private Long creditImpact;

    /** 借阅状态 */
    @Excel(name = "借阅状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }

    public void setBorrowTime(Date borrowTime) 
    {
        this.borrowTime = borrowTime;
    }

    public Date getBorrowTime() 
    {
        return borrowTime;
    }

    public void setDueTime(Date dueTime) 
    {
        this.dueTime = dueTime;
    }

    public Date getDueTime() 
    {
        return dueTime;
    }

    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }

    public void setIsOverdue(Long isOverdue) 
    {
        this.isOverdue = isOverdue;
    }

    public Long getIsOverdue() 
    {
        return isOverdue;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setCreditImpact(Long creditImpact) 
    {
        this.creditImpact = creditImpact;
    }

    public Long getCreditImpact() 
    {
        return creditImpact;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("bookId", getBookId())
            .append("borrowTime", getBorrowTime())
            .append("dueTime", getDueTime())
            .append("returnTime", getReturnTime())
            .append("isOverdue", getIsOverdue())
            .append("amount", getAmount())
            .append("creditImpact", getCreditImpact())
            .append("status", getStatus())
            .toString();
    }
}
